package com.javasm.adminapi.module.product.entity;

import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 商品类型（类目）表(TCategory)表实体类
 *
 * @author makejava
 * @since 2025-10-17 16:03:02
 */
@SuppressWarnings("serial")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class TCategory extends Model<TCategory> {
//主键
    @TableId(type = IdType.AUTO)
    private String id;
//父节点 ID，0 表示一级类目
    private Integer parentId;
//类型名称
    private String categoryName;
//层级：1-一级 2-二级 3-三级 …
    private Integer level;
//同级排序
    private Integer sortOrder;
//启用状态
    private Integer isEnabled;
//创建时间
    private Date createdTime;
//修改时间
    private Date updatedTime;
//逻辑删除：1-已删 0-未删
    private Integer isDeleted;
    @TableField(exist = false)
    private String cateId;
    @TableField(exist = false)
    private String brandDesc;
    @TableField(exist = false)
    private List<TCategory> children;

}
